gtk4.git
5 years agowidget: Avoid doing GtkSnapshot work just to append one node
Timm Bäder [Sat, 6 Jun 2020 10:09:10 +0000 (12:09 +0200)]
widget: Avoid doing GtkSnapshot work just to append one node

We already know that a widget will have literally 1 node, not more.
Avoid doing the GtkSnapshot state stack dance and just append a new
transform node instead.

Seems to give me around 400 more icons in the fishbowl

5 years agogsktransform: Make next == NULL case explicit
Timm Bäder [Sat, 6 Jun 2020 07:05:49 +0000 (09:05 +0200)]
gsktransform: Make next == NULL case explicit

This is handled with the is_identity() check as well but this way it's
much more obvious what's happening

5 years agofishbowl: Remove visibility handling
Timm Bäder [Sat, 6 Jun 2020 06:31:35 +0000 (08:31 +0200)]
fishbowl: Remove visibility handling

First, almost all widgets are either visible and mapped, or visible and
unmapped because they are !child_visible. In both cases, we do care
about the size. If they are indeed invisible, gtk_widget_measure() will
take care of that by returning all 0.

And gtk_widget_unparent() already queues a resize on the parent if
necessary, so that is unneeded as well.

5 years agoFix print dialog node name
Timm Bäder [Sat, 6 Jun 2020 06:13:00 +0000 (08:13 +0200)]
Fix print dialog node name

5 years agoMerge branch 'better-naming' into 'master'
Matthias Clasen [Fri, 19 Jun 2020 00:09:03 +0000 (00:09 +0000)]
Merge branch 'better-naming' into 'master'

Stop using loaded terms

See merge request GNOME/gtk!2109

5 years agoMerge branch 'quartz-openfile-fix' into 'master'
Matthias Clasen [Thu, 18 Jun 2020 21:43:59 +0000 (21:43 +0000)]
Merge branch 'quartz-openfile-fix' into 'master'

quartz: gtk-application - inhibit openFiles events from cmdline

See merge request GNOME/gtk!2112

5 years agoquartz: gtk-application - inhibit openFiles events from cmdline
Friedrich Beckmann [Thu, 18 Jun 2020 19:08:28 +0000 (21:08 +0200)]
quartz: gtk-application - inhibit openFiles events from cmdline

When an application is started via cmdline, then openFiles events
from MacOS are generated although gtkapplication already interprets
the cmdline arguments and opens suitable arguments as files. So they
would be opened twice. Depending on the exact situation the
openFiles event can also be issued before the startup signal
is given. Depending on the application this can result in a crash
due to unexpected behaviour. I took this idea from the
gedit-app-osx.m file. Also from Jesse van den Kieboom.

See:
https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/2098#note_842975
https://gitlab.gnome.org/GNOME/gtk/-/commit/a3ad7fa80f764fb7bcbe
https://gitlab.gnome.org/GNOME/gedit/-/blob/master/gedit/gedit-app-osx.m#L592

5 years agoRename master and slave device
Emmanuele Bassi [Thu, 18 Jun 2020 18:22:20 +0000 (19:22 +0100)]
Rename master and slave device

We already use the "logical/virtual" and "physical" names in the
documentation, there's no reason to use loaded terms just because X11
uses them.

5 years agoUse the appropriate name for Juneteenth
Emmanuele Bassi [Thu, 18 Jun 2020 16:43:46 +0000 (17:43 +0100)]
Use the appropriate name for Juneteenth

Juneteenth (a portmanteau of June and nineteenth)[2] (also known as
Freedom Day,[3] Jubilee Day,[4] and Liberation Day,[5]) is an unofficial
American holiday celebrated annually on the 19th of June in the United
States.
        -- https://en.wikipedia.org/wiki/Juneteenth

5 years agoClarify document
Emmanuele Bassi [Thu, 18 Jun 2020 16:36:44 +0000 (17:36 +0100)]
Clarify document

We don't use the branch name to determine whether we should enable or
disable deprecation warnings coming from our dependencies.

5 years agoRename internal object for the Quartz input method context
Emmanuele Bassi [Thu, 18 Jun 2020 16:33:30 +0000 (17:33 +0100)]
Rename internal object for the Quartz input method context

Like GtkIMMultiContext, the Quartz input method object uses a delegate
object internally. Let's not use loaded terms like "slave".

5 years agoRename delegate input method context
Emmanuele Bassi [Thu, 18 Jun 2020 16:32:05 +0000 (17:32 +0100)]
Rename delegate input method context

The GtkIMMultiContext uses a delegate pattern to proxy an existing input
method context. Let's not use loaded terms like "slave" when we have
perfectly fungible terms like "delegate".

5 years agoRename (unused) argument
Emmanuele Bassi [Thu, 18 Jun 2020 16:31:48 +0000 (17:31 +0100)]
Rename (unused) argument

5 years agodocs: Clean up the GtkBuilder description
Emmanuele Bassi [Thu, 18 Jun 2020 16:21:09 +0000 (17:21 +0100)]
docs: Clean up the GtkBuilder description

Drop the reference to a long since removed RNC schema file and to
GtkUIManager; clean up the typography for code elements.

5 years agoFix typo in a comment
Emmanuele Bassi [Thu, 18 Jun 2020 16:20:56 +0000 (17:20 +0100)]
Fix typo in a comment

5 years agocups: Use allow/ignore list
Emmanuele Bassi [Thu, 18 Jun 2020 15:58:43 +0000 (16:58 +0100)]
cups: Use allow/ignore list

Don't use loaded terms like "whitelist" and "blacklist".

5 years agoUpdate a comment
Emmanuele Bassi [Thu, 18 Jun 2020 15:57:27 +0000 (16:57 +0100)]
Update a comment

Drop the use of "blacklist" from the comment, since everything else
refers to "ignored" properties.

5 years agoUpdate Ukrainian translation
Yuri Chornoivan [Thu, 18 Jun 2020 15:29:05 +0000 (15:29 +0000)]
Update Ukrainian translation

5 years agoMerge branch 'typo_fix' into 'master'
Matthias Clasen [Thu, 18 Jun 2020 15:22:53 +0000 (15:22 +0000)]
Merge branch 'typo_fix' into 'master'

Fix minor typos

See merge request GNOME/gtk!2108

5 years agoFix minor typos
Yuri Chornoivan [Thu, 18 Jun 2020 07:47:16 +0000 (10:47 +0300)]
Fix minor typos

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Thu, 18 Jun 2020 03:21:18 +0000 (03:21 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

See merge request GNOME/gtk!2107

5 years agogtk-demo: Fix the settings demo
Matthias Clasen [Tue, 16 Jun 2020 20:22:19 +0000 (16:22 -0400)]
gtk-demo: Fix the settings demo

This was not updated to the latest api of GtkEditableLabel.

5 years agogtk-demo: Cosmetic changes
Matthias Clasen [Wed, 17 Jun 2020 22:08:17 +0000 (18:08 -0400)]
gtk-demo: Cosmetic changes

Reword the titles and texts for several demos.

5 years agogtk-demo: Cosmetic changes to the tagged entry demo
Matthias Clasen [Wed, 17 Jun 2020 22:06:28 +0000 (18:06 -0400)]
gtk-demo: Cosmetic changes to the tagged entry demo

5 years agogtk-demo: Fix the tagged entry demo
Matthias Clasen [Wed, 17 Jun 2020 21:53:40 +0000 (17:53 -0400)]
gtk-demo: Fix the tagged entry demo

We were using gtk_box_append on a button. Fallout
from the container removal.

5 years agogtk4-demo: Cosmetic fixes to the dialog demo
Matthias Clasen [Wed, 17 Jun 2020 21:46:40 +0000 (17:46 -0400)]
gtk4-demo: Cosmetic fixes to the dialog demo

Make this look a bit less ancient.

5 years agoMerge branch 'matthiasc/cloudprovider-ci' into 'master'
Matthias Clasen [Wed, 17 Jun 2020 21:16:17 +0000 (21:16 +0000)]
Merge branch 'matthiasc/cloudprovider-ci' into 'master'

Matthiasc/cloudprovider ci

See merge request GNOME/gtk!2106

5 years agoFix another cloudprovider include
Matthias Clasen [Wed, 17 Jun 2020 20:19:55 +0000 (16:19 -0400)]
Fix another cloudprovider include

5 years agogtk-demo: Add a missing source file
Matthias Clasen [Wed, 17 Jun 2020 17:48:40 +0000 (13:48 -0400)]
gtk-demo: Add a missing source file

5 years agoUse the appropriate include for libcloudproviders
Emmanuele Bassi [Wed, 17 Jun 2020 19:49:57 +0000 (20:49 +0100)]
Use the appropriate include for libcloudproviders

Libcloudproviders has a single header entry point, so we shouldn't
include a sub-header.

Additionally, the include path provided by the pkg-config file is:

  -I${includedir}/cloudproviders

So the include directive should be:

  #include <cloudproviders.h>

The fact that it worked until now was an accident caused by the blanket:

  -I${includedir}

we get for free; it broke the build when using libcloudproviders as a
subproject.

5 years agoci: Enable libcloudproviders support
Emmanuele Bassi [Mon, 8 Jun 2020 10:37:29 +0000 (11:37 +0100)]
ci: Enable libcloudproviders support

We ended up breaking the build when it's enabled, so we should test the
feature in our CI pipeline.

5 years agoAdd libcloudproviders as a fallback subproject
Emmanuele Bassi [Tue, 9 Jun 2020 14:46:32 +0000 (15:46 +0100)]
Add libcloudproviders as a fallback subproject

We require a new version of libcloudproviders so that we can enable it
in our CI pipeline.

5 years agoMerge branch 'fix-initial-demo-selection' into 'master'
Matthias Clasen [Wed, 17 Jun 2020 17:37:12 +0000 (17:37 +0000)]
Merge branch 'fix-initial-demo-selection' into 'master'

gtk-demo: Select the initial demo properly

See merge request GNOME/gtk!2105

5 years agoMerge branch 'no-more-testdbus' into 'master'
Emmanuele Bassi [Wed, 17 Jun 2020 16:54:06 +0000 (16:54 +0000)]
Merge branch 'no-more-testdbus' into 'master'

Stop using GTestDBus

See merge request GNOME/gtk!2104

5 years agogtk-demo: Select the initial demo properly
Matthias Clasen [Wed, 17 Jun 2020 16:25:28 +0000 (12:25 -0400)]
gtk-demo: Select the initial demo properly

GtkSingleSelection does not give us a notification when
autoselect kicks in to select the first item. This was
barely noticeable, since the notebook ends up correctly
populated anyway, but the window title is not.

5 years agoStop using GTestDBus
Matthias Clasen [Wed, 17 Jun 2020 16:05:07 +0000 (12:05 -0400)]
Stop using GTestDBus

It is causing tests to timeout when libraries we are using
leak bus connections, and it turns out our tests run fine
without a session bus.

5 years agoUpdate Romanian translation
Florentina Mușat [Wed, 17 Jun 2020 15:38:14 +0000 (15:38 +0000)]
Update Romanian translation

5 years agoUpdate Romanian translation
Florentina Mușat [Wed, 17 Jun 2020 15:31:22 +0000 (15:31 +0000)]
Update Romanian translation

5 years agoMerge branch 'ebassi/ci-cleanup-master' into 'master'
Matthias Clasen [Wed, 17 Jun 2020 15:06:44 +0000 (15:06 +0000)]
Merge branch 'ebassi/ci-cleanup-master' into 'master'

Small clean ups for the CI file

See merge request GNOME/gtk!2102

5 years agoci: Move backend Meson flags into a variable
Emmanuele Bassi [Mon, 8 Jun 2020 10:35:49 +0000 (11:35 +0100)]
ci: Move backend Meson flags into a variable

So we don't have to copy them around.

5 years agoci: Move images into environment variables
Emmanuele Bassi [Mon, 8 Jun 2020 10:00:20 +0000 (11:00 +0100)]
ci: Move images into environment variables

Currently we have to hunt all the `image` keys when updating the image
in use for a job. We should centralise them all at the top of the file,
so they are easy to update in one simple change.

5 years agoUpdated Spanish translation
Daniel Mustieles [Wed, 17 Jun 2020 11:54:04 +0000 (13:54 +0200)]
Updated Spanish translation

5 years agoUpdate Ukrainian translation
Yuri Chornoivan [Wed, 17 Jun 2020 08:28:31 +0000 (08:28 +0000)]
Update Ukrainian translation

5 years agoMerge branch 'page-setup-combos' into 'master'
Matthias Clasen [Tue, 16 Jun 2020 20:00:13 +0000 (20:00 +0000)]
Merge branch 'page-setup-combos' into 'master'

Page setup combos

See merge request GNOME/gtk!2100

5 years agoMerge branch 'wip/jimmac/dropdown-styling' into 'master'
Matthias Clasen [Tue, 16 Jun 2020 19:52:51 +0000 (19:52 +0000)]
Merge branch 'wip/jimmac/dropdown-styling' into 'master'

Adwaita: dropdown styling

Closes #2846

See merge request GNOME/gtk!2101

5 years agoAdwaita: dropdown styling
Jakub Steiner [Mon, 15 Jun 2020 13:18:04 +0000 (15:18 +0200)]
Adwaita: dropdown styling

- selected item color
- offset dropdown form the parent control
- special styling for the top search entry

Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/2846

5 years agopagesetupdialog: Convert the printer combo
Matthias Clasen [Tue, 16 Jun 2020 01:57:39 +0000 (21:57 -0400)]
pagesetupdialog: Convert the printer combo

Turn the printer combo into a dropdown.

5 years agopagesetupdialog: Port the papersize combo
Matthias Clasen [Tue, 16 Jun 2020 00:31:27 +0000 (20:31 -0400)]
pagesetupdialog: Port the papersize combo

Turn the papersize combo into a dropdown.

5 years agoDrop unused includes
Matthias Clasen [Tue, 16 Jun 2020 16:06:34 +0000 (12:06 -0400)]
Drop unused includes

This is just cleanup to help tracking down
remaining GtkComboBox uses.

5 years agoquartz: added open capability to gtk_application
Friedrich Beckmann [Tue, 16 Jun 2020 14:59:06 +0000 (16:59 +0200)]
quartz: added open capability to gtk_application

This patch implements the openFiles delegate which is required
to open files which are associated with an application via the
Finder or via open on the command line. The patch has been
proposed by jessevdk@gmail.com.

See: https://gitlab.gnome.org/GNOME/gtk/-/issues/463

I tested the patch with the GNU pspp application on MacOS with
the quartz backend.

5 years agoUpdate POTFILES.in
Piotr Drąg [Tue, 16 Jun 2020 16:16:43 +0000 (18:16 +0200)]
Update POTFILES.in

5 years agoMerge branch 'wip/ricotz/cleanup' into 'master'
Emmanuele Bassi [Tue, 16 Jun 2020 15:05:25 +0000 (15:05 +0000)]
Merge branch 'wip/ricotz/cleanup' into 'master'

gdk: Drop gdk_device_get_axis_value leftovers

See merge request GNOME/gtk!2097

5 years agoMerge branch 'cherry-pick-947c3e9f' into 'master'
Benjamin Otte [Tue, 16 Jun 2020 13:57:49 +0000 (13:57 +0000)]
Merge branch 'cherry-pick-947c3e9f' into 'master'

Merge branch 'benzea/fix-css-update' into 'gtk-3-24'

See merge request GNOME/gtk!2096

5 years agogdk: Drop gdk_device_get_axis_value leftovers
Rico Tzschichholz [Tue, 16 Jun 2020 13:31:29 +0000 (15:31 +0200)]
gdk: Drop gdk_device_get_axis_value leftovers

5 years agoMerge branch 'benzea/fix-css-update' into 'gtk-3-24'
Benjamin Otte [Mon, 15 Jun 2020 20:13:56 +0000 (20:13 +0000)]
Merge branch 'benzea/fix-css-update' into 'gtk-3-24'

Fix CSS update loop

See merge request GNOME/gtk!2093

(cherry picked from commit 947c3e9f723ef733ab46e4dce34fa41b91cb0604)

7a5caf1b cssnode: Don't queue_validate/deque_validate invisible nodes

5 years agoUpdated Spanish translation
Daniel Mustieles [Tue, 16 Jun 2020 07:47:37 +0000 (09:47 +0200)]
Updated Spanish translation

5 years agoUpdated Spanish translation
Daniel Mustieles [Tue, 16 Jun 2020 07:46:49 +0000 (09:46 +0200)]
Updated Spanish translation

5 years agoMerge branch 'printer-combo-conversion' into 'master'
Matthias Clasen [Tue, 16 Jun 2020 05:02:44 +0000 (05:02 +0000)]
Merge branch 'printer-combo-conversion' into 'master'

Printer combo conversion

See merge request GNOME/gtk!2095

5 years agofontchooser: Drop unused includes
Matthias Clasen [Mon, 15 Jun 2020 22:15:58 +0000 (18:15 -0400)]
fontchooser: Drop unused includes

5 years agotext: Drop unused includes
Matthias Clasen [Mon, 15 Jun 2020 22:14:06 +0000 (18:14 -0400)]
text: Drop unused includes

5 years agoprintdialog: Convert some leftover code
Matthias Clasen [Mon, 15 Jun 2020 21:54:49 +0000 (17:54 -0400)]
printdialog: Convert some leftover code

There was still some code expecting to deal with tree
models. Convert it to work with list models.

5 years agopagesetupdialog: Drop the Private struct
Matthias Clasen [Mon, 15 Jun 2020 20:33:11 +0000 (16:33 -0400)]
pagesetupdialog: Drop the Private struct

We don't need it here.

5 years agopaperdialog: Convert the printer combo
Matthias Clasen [Sun, 14 Jun 2020 12:30:54 +0000 (08:30 -0400)]
paperdialog: Convert the printer combo

Use a GtkDropDown for the printer combo.

5 years agoMerge branch 'fix-notebook-tabs' into 'master'
Matthias Clasen [Mon, 15 Jun 2020 20:42:53 +0000 (20:42 +0000)]
Merge branch 'fix-notebook-tabs' into 'master'

Fix notebook tabs

Closes #2842 and #2841

See merge request GNOME/gtk!2092

5 years agonotebook: Don't capture clicks
Matthias Clasen [Mon, 15 Jun 2020 18:16:45 +0000 (14:16 -0400)]
notebook: Don't capture clicks

Using the bubble works just fine here, and keeps buttons
in notebook tabs working without side-effects.

Fixes: #2841
5 years agoMerge branch 'michaelweghorn/master_issue1820_gtkfilechoosernativeportal_get_filter...
Matthias Clasen [Mon, 15 Jun 2020 17:49:17 +0000 (17:49 +0000)]
Merge branch 'michaelweghorn/master_issue1820_gtkfilechoosernativeportal_get_filter' into 'master'

Make gtk_file_chooser_get_filter work for portal case (issue #1820, master)

Closes #1820

See merge request GNOME/gtk!2070

5 years agosearchentry: Fix keynav
Matthias Clasen [Mon, 15 Jun 2020 17:45:57 +0000 (13:45 -0400)]
searchentry: Fix keynav

Shift-Tabbing was getting stuck in GtkSearchEntry and
GtkPasswordEntry, since they grab the focus to a child
of theirs. Copy the same fix that we are already using
in GtkEntry.

Fixes: #2842
5 years agodocs: Cosmetics
Matthias Clasen [Mon, 15 Jun 2020 17:45:28 +0000 (13:45 -0400)]
docs: Cosmetics

Remove a few instances of GTK+ in the docs.

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Mon, 15 Jun 2020 17:01:25 +0000 (17:01 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

button: Center images

See merge request GNOME/gtk!2090

5 years agoMerge branch 'editable-label' into 'master'
Matthias Clasen [Mon, 15 Jun 2020 16:47:57 +0000 (16:47 +0000)]
Merge branch 'editable-label' into 'master'

Editable label

See merge request GNOME/gtk!2081

5 years agobutton: Center images
Matthias Clasen [Mon, 15 Jun 2020 16:23:32 +0000 (12:23 -0400)]
button: Center images

If we leave the valign to be the default fill, then
the images pick up baseline alignment from the environment,
which can occasionally lead to misplaced -/+ icons in
spinbuttons, for example in the "Page Setup" tab of
the print dialog.

5 years agopaperdialog: Port to use GtkListView
Matthias Clasen [Fri, 12 Jun 2020 18:11:16 +0000 (14:11 -0400)]
paperdialog: Port to use GtkListView

Use GtkListView and GtkEditableLabel here.

5 years agogtk-demo: Use editable labels in the settings demo
Matthias Clasen [Fri, 12 Jun 2020 15:07:37 +0000 (11:07 -0400)]
gtk-demo: Use editable labels in the settings demo

This is more in line with the expected behavior for
editable lists.

5 years agoAdd a GtkEditableLabel widget
Matthias Clasen [Fri, 12 Jun 2020 15:07:07 +0000 (11:07 -0400)]
Add a GtkEditableLabel widget

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Mon, 15 Jun 2020 16:01:22 +0000 (16:01 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

inspector: Don't set style classes on app widgets

See merge request GNOME/gtk!2089

5 years agoinspector: Don't set style classes on app widgets
Matthias Clasen [Mon, 15 Jun 2020 15:21:20 +0000 (11:21 -0400)]
inspector: Don't set style classes on app widgets

Due to a mixup, the inspector was setting .dim-label on
widgets that get unmapped, instead of the labels representing
them in the object tree.

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Mon, 15 Jun 2020 15:05:14 +0000 (15:05 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

dropdown: Style fixups

See merge request GNOME/gtk!2088

5 years agodropdown: Style fixups
Matthias Clasen [Mon, 15 Jun 2020 14:23:39 +0000 (10:23 -0400)]
dropdown: Style fixups

Make the dropdown popover have a .menu style class,
and add padding to the rows in the popover. Also,
make the popover left-aligned with the button.

5 years agoMerge branch 'final-frame-clock-work' into 'master'
Alexander Larsson [Mon, 15 Jun 2020 10:27:02 +0000 (10:27 +0000)]
Merge branch 'final-frame-clock-work' into 'master'

Final frame clock work

See merge request GNOME/gtk!2087

5 years agoframe clock: fix scheduling
Yariv Barkan [Wed, 10 Jun 2020 07:54:07 +0000 (10:54 +0300)]
frame clock: fix scheduling

Fix scheduling of the frame clock when we don't receive "frame drawn"
messages from the compositor.

If we received "frame drawn" events recently, then the "smooth frame
time" would be in sync with the vsync time. When we don't receive frame
drawn events, the "smooth frame time" is simply incremented by constant
multiples of the refresh interval. In both cases we can use this smooth
time as the basis for scheduling the next clock cycle.

By only using the "smooth frame time" as a basis we also benefit from
more consistent scheduling cadence. If, for example, we got "frame
drawn" events, then didn't receive them for a few frames, we would still
be in sync when we start receiving these events again.

5 years agoframe clock: adjust reported frame time
Yariv Barkan [Wed, 10 Jun 2020 07:45:14 +0000 (10:45 +0300)]
frame clock: adjust reported frame time

When an animation is started while the application is idle, that often
happens as a result of some external event. This can be an input event,
an expired timer, data arriving over the network etc. The result is that
the first animation clock cycle could be scheduled at some random time,
as opposed to follow up cycles which are usually scheduled right after a
vsync.

Since the frame time we report to the application is correlated to the
time when the frame clock was scheduled to run, this can result in
uneven times reported in the first few animation frames. In order to fix
that, we measure the phase of the first clock cycle - i.e. the offset
between the first cycle and the preceding vsync. Once we start receiving
"frame drawn" signals, the cadence of the frame clock scheduling becomes
tied to the vsync. In order to maintain the regularity of the reported
frame times, we adjust subsequent reported frame times with the
aforementioned phase.

5 years agoUpdate Ukrainian translation
Yuri Chornoivan [Mon, 15 Jun 2020 06:33:54 +0000 (06:33 +0000)]
Update Ukrainian translation

5 years agoMerge branch 'mingw-x64-compiler-warnings' into 'master'
Matthias Clasen [Mon, 15 Jun 2020 01:26:45 +0000 (01:26 +0000)]
Merge branch 'mingw-x64-compiler-warnings' into 'master'

Fix various compiler warnings with the 64bit mingw build

See merge request GNOME/gtk!2020

5 years agoMerge branch 'fix-spin-button-auto-sizing' into 'master'
Matthias Clasen [Sun, 14 Jun 2020 22:06:16 +0000 (22:06 +0000)]
Merge branch 'fix-spin-button-auto-sizing' into 'master'

spinbutton: Bring back auto-sizing

See merge request GNOME/gtk!2085

5 years agoCI: Switch to 64bit mingw for the MSYS2 job
Christoph Reiter [Sun, 14 Jun 2020 18:02:46 +0000 (20:02 +0200)]
CI: Switch to 64bit mingw for the MSYS2 job

64 bit is more common now and also tests more things because
sizeof(glong) != sizeof(gpointer)

5 years agoFix various compiler warnings with the 64bit mingw build
Christoph Reiter [Tue, 2 Jun 2020 18:41:38 +0000 (20:41 +0200)]
Fix various compiler warnings with the 64bit mingw build

Use better matching format modifiers/specifiers, initialise some things
which in theory wont be written to because of getters using g_return_if_fail(),
a cast, and gsize as input for malloc because gsize!=glong on 64bit Windows.

5 years agoMerge branch 'tchaik/fix-lpr-build' into 'master'
Matthias Clasen [Sun, 14 Jun 2020 14:57:42 +0000 (14:57 +0000)]
Merge branch 'tchaik/fix-lpr-build' into 'master'

Fix the lpr print backend build (redundant-decls)

See merge request GNOME/gtk!2084

5 years agospinbutton: Bring back auto-sizing
Matthias Clasen [Sun, 14 Jun 2020 13:12:49 +0000 (09:12 -0400)]
spinbutton: Bring back auto-sizing

We lost this when GtkSpinButton was first ported
to the new editable regime, and then the GtkBoxLayout.

Bring it back, but without text measurement, by overriding
width-chars for the GtkText inside, and only do it if
GtkSpinButton::width-chars is unset (ie -1).

Also adjust the documentation slightly to point out
how auto-sizing can be turned off.

5 years agoFix the lpr print backend build (redundant-decls)
Martin Blanchard [Sun, 14 Jun 2020 14:13:37 +0000 (16:13 +0200)]
Fix the lpr print backend build (redundant-decls)

Class and instance _init() functions are already declared by
G_DEFINE_DYNAMIC_TYPE ().

5 years agoUpdate Basque translation
Asier Sarasua Garmendia [Sat, 13 Jun 2020 20:19:00 +0000 (20:19 +0000)]
Update Basque translation

5 years agoUpdate Basque translation
Asier Sarasua Garmendia [Sat, 13 Jun 2020 19:40:17 +0000 (19:40 +0000)]
Update Basque translation

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Sat, 13 Jun 2020 16:17:49 +0000 (16:17 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

widget-factory: Make the print dialog more functional

See merge request GNOME/gtk!2083

5 years agowidget-factory: Make the print dialog more functional
Matthias Clasen [Sat, 13 Jun 2020 12:59:21 +0000 (08:59 -0400)]
widget-factory: Make the print dialog more functional

Allow opening the papersize dialog.

5 years agoUpdate Ukrainian translation
Yuri Chornoivan [Sat, 13 Jun 2020 11:45:35 +0000 (11:45 +0000)]
Update Ukrainian translation

5 years agoUpdate POTFILES.in and POTFILES.skip
Piotr Drąg [Sat, 13 Jun 2020 10:48:27 +0000 (12:48 +0200)]
Update POTFILES.in and POTFILES.skip

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Fri, 12 Jun 2020 21:53:48 +0000 (21:53 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

paperdialog: Drop the private struct

See merge request GNOME/gtk!2082

5 years agopaperdialog: Drop the private struct
Matthias Clasen [Fri, 12 Jun 2020 16:52:47 +0000 (12:52 -0400)]
paperdialog: Drop the private struct

Not needed here.

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Fri, 12 Jun 2020 16:39:46 +0000 (16:39 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

See merge request GNOME/gtk!2080

5 years agoMerge branch 'fix-custom-paper-dialog' into 'master'
Matthias Clasen [Fri, 12 Jun 2020 14:01:17 +0000 (14:01 +0000)]
Merge branch 'fix-custom-paper-dialog' into 'master'

Fix the custom paper dialog

See merge request GNOME/gtk!2078

5 years agoprintdialog: Replace the papersize combo with a dropdown
Matthias Clasen [Fri, 12 Jun 2020 12:28:59 +0000 (08:28 -0400)]
printdialog: Replace the papersize combo with a dropdown

This one is more complicated, since it involves
separators and a custom item.